package com.ruitu.mall_98_2.mvp.contract;

import com.beanu.arad.base.BaseModel;
import com.beanu.arad.base.BasePresenter;
import com.beanu.arad.base.BaseView;
import com.ruitu.router_module.bean.api.BaseResult;
import com.ruitu.router_module.bean.mine.Coupon;

import java.util.List;

import rx.Observable;

public interface CouponContract {
    interface Model extends BaseModel{
        Observable<BaseResult<List<Coupon>>> getMineCouponsNew(String accountId, String mode);
    }

    interface View extends BaseView{
        void setData(List<Coupon> coupons);

        void setFail();
    }

    abstract class Presenter extends BasePresenter<View,Model>{
        public abstract void getMineCouponsNew(String accountId, String mode);
    }
}
